Skip to content

Fix Mali-G615 r44p1 viewport-index reporting - #88

Closed
uddish-code wants to merge 2 commits into
ASEbrahim:mainfrom
uddish-code:fix/mali-g615-r44p1-viewport-index
Closed

uddish-code wants to merge 2 commits into
ASEbrahim:mainfrom
uddish-code:fix/mali-g615-r44p1-viewport-index

Conversation

@uddish-code

Copy link
Copy Markdown

Fixes #72

Problem

On Mali-G615 r44p1, the Vulkan device reports multi-viewport support and shader viewport-index output, but vertex shaders that write BuiltIn ViewportIndex are ignored. Primitives are rasterized through viewport 0, which breaks multi-viewport applications such as Blender EEVEE shadow rendering.

Fix

  • Added a narrow Mali-G615 r44p1 detector in the shared GPU/driver identification code.
  • Requires Arm's proprietary driver and a Mali-G615/r44p1 match; Mesa and other similarly named drivers are excluded.
  • Reports �multiViewport� and �shaderOutputViewportIndex� unavailable, allowing clients and MaliBridge's existing multi-viewport emulation to use the compatible path.

Validation

Files

  • server/server_driverid.c
  • server/server_emu.c
  • server/server_promote.c
  • server/vkb_server.h

@ASEbrahim

Copy link
Copy Markdown
Owner

Thanks for wanting to contribute!
We already emulate multiViewport on drivers that lack it, so hiding it would change things for every game on the G615 just for this case.
I'd rather fix it only for specific pipelines, so other games stay the same. I'll do it on our side for #72

@uddish-code

Copy link
Copy Markdown
Author

Thanks for wanting to contribute! We already emulate multiViewport on drivers that lack it, so hiding it would change things for every game on the G615 just for this case. I'd rather fix it only for specific pipelines, so other games stay the same. I'll do it on our side for #72

Ohh that makes sense, should I close the pr or keep it open for future references?

@ASEbrahim

Copy link
Copy Markdown
Owner

All good, I'll close it for now :)

@ASEbrahim ASEbrahim closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mali-G615 r44p1: gl_ViewportIndex from the vertex shader is ignored (all draws land in viewport 0), breaks Blender EEVEE shadows

2 participants